package myspring;

import java.util.Date;

/**
 * <pre>
 *   Title: Person.java
 *   Description: 
 *   Copyright: yundaex.com Copyright (c) 2013
 *   Company: 上海韵达货运有限公司
 * </pre>
 * 
 * @author liuzhaoqing
 * @version 1.0
 * @date 2014年10月25日
 */
public class Person {
	private String name;
	private int age;
	private float salary;
	private double crash;
	private Date date;
	
	public Person() {
		
	}

	public Person(String name) {
		this.name = name;
	}
	
	public Person(String name, int age, float salary, double crash, Date date) {
		super();
		this.name = name;
		this.age = age;
		this.salary = salary;
		this.crash = crash;
		this.date = date;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public float getSalary() {
		return salary;
	}

	public void setSalary(float salary) {
		this.salary = salary;
	}

	public double getCrash() {
		return crash;
	}

	public void setCrash(double crash) {
		this.crash = crash;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + ", salary=" + salary + ", crash=" + crash + ", date=" + date + "]";
	}

}
